Returns the position of element in container using test andkey to match. Key defaults to identity and test defaults to eq.